<?php


namespace App\Libraries\Express\Driver;


use App\Libraries\Express\Express;
use App\Libraries\Express\Response;
use App\Models\Order;
use Illuminate\Support\Str;

class Zto implements Express
{
    /**
     * @var Order
     */
    private $order;

    /**
     * Express constructor.
     * @param Order $order
     */
    public function __construct(Order $order)
    {
        $this->order = $order;
    }

    /**
     * 创建物流单
     * @return mixed
     */
    public function create(): Response
    {
        return new Response(Str::random(11), '/storage/picking.pdf');
    }

    /**
     * 修改物流单
     * @return mixed
     */
    public function update(): Response
    {
        return new Response(Str::random(11), '/storage/picking.pdf');
    }

    /**
     * 物流单清关
     * @return mixed
     */
    public function customs(): bool
    {
        return true;
    }

    /**
     * 获取面单
     * @return string
     */
    public function getPdf(): string
    {
        return '';
    }
}
